<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>01-vue使用步骤</title>
</head>
<body>
    <div id="app">
        <h3>小路水果店</h3>
        <ul>
            <li v-for="item in fruits">
                {{item}}
            </li>
        </ul>
    </div>

    <!--导入vue.js-->
    <script src="js/vue.js"></script>

    <script>
        /*创建vue实例对象*/
        let app = new Vue({
            /*数据挂载的节点*/
            el: '#app',
            data:{
                fruits: ['西瓜','凤梨','葡萄','柚子']
            }
        })

    </script>

</body>
</html>